package com.jmp.base;

import com.jmp.base.dto.SmsCaptchaCheckRequest;
import com.jmp.base.dto.SmsCaptchaCheckResponse;
import com.jmp.base.dto.SmsCaptchaRequest;
import com.jmp.base.dto.SmsSendRequest;
import one.stand.model.ResultModel;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 短信服务
 *
 * @author cjr
 */
public interface SmsApi {
    /**
     * 发送短信
     */
    @PostMapping("sms/send")
    ResultModel sendBatchSms(@RequestBody SmsSendRequest request);

    /**
     * 发送验证码
     */
    @PostMapping("sms/captcha")
    ResultModel captchaSend(@RequestBody SmsCaptchaRequest request);

    /**
     * 校验验证码
     */
    @PostMapping("sms/captcha/check")
    ResultModel<SmsCaptchaCheckResponse> captchaCheck(@RequestBody SmsCaptchaCheckRequest request);
}
